package com.kun.springbootdelivery.service.impl;

import cn.hutool.json.JSONUtil;
import com.kun.springbootdelivery.entity.Delivery;
import com.kun.springbootdelivery.entity.Order;
import com.kun.springbootdelivery.mapper.DeliveryMapper;
import com.kun.springbootdelivery.service.DeliveryService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.rabbitmq.client.Channel;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.amqp.rabbit.connection.CorrelationData;
import org.springframework.amqp.support.AmqpHeaders;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.messaging.handler.annotation.Header;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author kunkun
 * @since 2025-02-25
 */
@Service
public class DeliveryServiceImpl extends ServiceImpl<DeliveryMapper, Delivery> implements DeliveryService {

    @Autowired
    private DeliveryMapper deliveryMapper;

    @Override
    public Integer insertDelivery(Delivery delivery) {
        return deliveryMapper.insert(delivery);
    }


}
